﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lamex.Library.CommonClass
{
   public class ColorTypeHelper
    {

        public static Color GetColorType(string TypeName,ref string StatusName)
        {
            Color color = Color.White;
            if (TypeName == "MES")
            {
                color = Color.Green;
                StatusName = "正常生产";
            }  
            else if (TypeName == "MES_CH")
            {
                color = Color.Blue;
                StatusName = "产品切换";
            }
                
            else if (TypeName == "MES_EQ")
            {
                color = Color.Orange;
                StatusName = "设备故障";
            }
                
            else if (TypeName == "MES_MG")
            {
                color = Color.Purple;
                StatusName = "";
            }
                
            else if (TypeName == "MES_MS")
            {
                color = Color.Yellow;
                StatusName = "缺料等待";
            }
               
            else if (TypeName == "MES_PD")
            {
                color = Color.Green;
                StatusName = "合格品";
            }
                
            else if (TypeName == "MES_QC")
            {
                color = Color.Red;
                StatusName = "不良品";
            }
            else if (TypeName == "MES_QC1")
            {
                color = Color.Red;
                StatusName = "品质异常";
            }
            return color;

            //            MES = 正常生产，   颜色 = 绿
            //      MES_CH = 产品切换，颜色 = 蓝
            //      MES_EQ = 设备故障，颜色 = 橙
            //MES_MS = 缺料等待，颜色 = 黄
            //MES_MT = 设备保养，颜色 = 紫
            //MES_QC = 品质异常，暗色 = 红
            //MES_WS = 内部故障，颜色 = 青
            //合格率框
            //   MESPD = 合格品，颜色 = 绿
   //MESQC = 不良品，颜色 = 红


        }
    }
}
